var js=document.scripts;
var jsPath;
for(var i=js.length;i>0;i--){
    if(js[i-1].src.indexOf("fsd.all.js")>-1){
        jsPath=js[i-1].src.substring(0,js[i-1].src.lastIndexOf("/")+1);
    }
}
var api = frameElement.api, W = api.opener;
var videosrc = api.data;
var path = '../../../';

window.onload = function() {
	var so = new SWFObject("../../plugin/CuPlayer/CuPlayerMiniV4.swf","CuPlayerV4","600","410","9","#000000");
	so.addParam("allowfullscreen","true");
	so.addParam("allowscriptaccess","always");
	so.addParam("wmode","opaque");
	so.addParam("quality","high");
	so.addParam("salign","lt");
	so.addVariable("CuPlayerSetFile","../../plugin/CuPlayer/CuPlayerSetFile.xml"); //播放器配置文件地址,例SetFile.xml、SetFile.asp、SetFile.php、SetFile.aspx
	so.addVariable("CuPlayerWidth","600"); 
	so.addVariable("CuPlayerHeight","410"); 
	so.addVariable("CuPlayerAutoPlay","yes"); 
	so.addVariable("CuPlayerImage","../../plugin/CuPlayer/images/start.jpg");
	so.addVariable("CuPlayerPosition","bottom-right"); 
	so.addVariable("CuPlayerFile",jsPath + path + videosrc); 
	so.write("fsdvideocontent");
};


